package com.ccrfid.rmc6.entity.alarm;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "v_alarm_notify_record")
public class AlarmNotifyRecordView {
    private Long id;
    private Long notifyPersonnelId;
    private String notifyPersonnelName;
    private Integer read;
    private Long alarmRecordId;
    private Long personnelId;
    private String personnelName;
    private String personnelIds;
    private String nameAcronym;
    private Long cardNumber;
    private Long locationId;
    private String locationName;
    private Long alarmRuleId;
    private String alarmRuleName;
    private Integer alarmType;
    private String alarmTypeName;
    private Integer alarmLevel;
    private Timestamp alarmTime;
    private Integer closed;
    private Timestamp closeTime;
    private String hexNumber;

    @Id
    @Column(name = "id", nullable = false)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "notify_personnel_id")
    public Long getNotifyPersonnelId() {
        return notifyPersonnelId;
    }

    public void setNotifyPersonnelId(Long notifyPersonnelId) {
        this.notifyPersonnelId = notifyPersonnelId;
    }

    @Basic
    @Column(name = "notify_personnel_name")
    public String getNotifyPersonnelName() {
        return notifyPersonnelName;
    }

    public void setNotifyPersonnelName(String notifyPersonnelName) {
        this.notifyPersonnelName = notifyPersonnelName;
    }

    @Basic
    @Column(name = "is_read")
    public Integer getRead() {
        return read;
    }

    public void setRead(Integer read) {
        this.read = read;
    }

    @Basic
    @Column(name = "alarm_record_id")
    public Long getAlarmRecordId() {
        return alarmRecordId;
    }

    public void setAlarmRecordId(Long alarmRecordId) {
        this.alarmRecordId = alarmRecordId;
    }

    @Basic
    @Column(name = "personnel_id")
    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }

    @Basic
    @Column(name = "personnel_name")
    public String getPersonnelName() {
        return personnelName;
    }

    public void setPersonnelName(String personnelName) {
        this.personnelName = personnelName;
    }

    @Basic
    @Column(name = "personnel_ids", length = 1500)
    public String getPersonnelIds() {
        return personnelIds;
    }

    public void setPersonnelIds(String personnelIds) {
        this.personnelIds = personnelIds;
    }

    @Basic
    @Column(name = "name_acronym", length = 20)
    public String getNameAcronym() {
        return nameAcronym;
    }

    public void setNameAcronym(String nameAcronym) {
        this.nameAcronym = nameAcronym;
    }

    @Basic
    @Column(name = "card_number")
    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    @Basic
    @Column(name = "location_id")
    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    @Basic
    @Column(name = "location_name")
    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    @Basic
    @Column(name = "alarm_rule_id")
    public Long getAlarmRuleId() {
        return alarmRuleId;
    }

    public void setAlarmRuleId(Long alarmRuleId) {
        this.alarmRuleId = alarmRuleId;
    }

    @Basic
    @Column(name = "alarm_rule_name")
    public String getAlarmRuleName() {
        return alarmRuleName;
    }

    public void setAlarmRuleName(String alarmRuleName) {
        this.alarmRuleName = alarmRuleName;
    }

    @Basic
    @Column(name = "alarm_type")
    public Integer getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(Integer alarmType) {
        this.alarmType = alarmType;
    }

    @Basic
    @Column(name = "alarm_type_name")
    public String getAlarmTypeName() {
        return alarmTypeName;
    }

    public void setAlarmTypeName(String alarmTypeName) {
        this.alarmTypeName = alarmTypeName;
    }

    @Basic
    @Column(name = "alarm_level")
    public Integer getAlarmLevel() {
        return alarmLevel;
    }

    public void setAlarmLevel(Integer alarmLevel) {
        this.alarmLevel = alarmLevel;
    }

    @Basic
    @Column(name = "alarm_time", nullable = false)
    public Timestamp getAlarmTime() {
        return alarmTime;
    }

    public void setAlarmTime(Timestamp alarmTime) {
        this.alarmTime = alarmTime;
    }

    @Basic
    @Column(name = "is_closed")
    public Integer getClosed() {
        return closed;
    }

    public void setClosed(Integer closed) {
        this.closed = closed;
    }

    @Basic
    @Column(name = "close_time", nullable = false)
    public Timestamp getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(Timestamp closeTime) {
        this.closeTime = closeTime;
    }

    @Basic
    @Column(name = "hex_number")
    public String getHexNumber() {
        return hexNumber;
    }

    public void setHexNumber(String hexNumber) {
        this.hexNumber = hexNumber;
    }

    @Override
    public String toString() {
        return "AlarmNotifyRecordView{" +
                "id=" + id +
                ", notifyPersonnelId=" + notifyPersonnelId +
                ", notifyPersonnelName='" + notifyPersonnelName + '\'' +
                ", read=" + read +
                ", alarmRecordId=" + alarmRecordId +
                ", personnelId=" + personnelId +
                ", personnelName='" + personnelName + '\'' +
                ", personnelIds='" + personnelIds + '\'' +
                ", nameAcronym='" + nameAcronym + '\'' +
                ", cardNumber=" + cardNumber +
                ", locationId=" + locationId +
                ", locationName='" + locationName + '\'' +
                ", alarmRuleId=" + alarmRuleId +
                ", alarmType=" + alarmType +
                ", alarmTypeName='" + alarmTypeName + '\'' +
                ", alarmLevel=" + alarmLevel +
                ", alarmTime=" + alarmTime +
                ", closed=" + closed +
                ", closeTime=" + closeTime +
                '}';
    }
}
